function solution(number) {
  let sum = 0;
  for (let i = 0; i < number; i++) {
    if (i % 3==0 || i % 5==0) sum += i;
  }
  return sum;
}
console.log(solution(10));

function filter_list(arr) {
    return arr.filter(item=> typeof(item)==='number')
}
console.log(filter_list([1,2,'aasf','1','123',123]));